package com.itsu.integration.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author suben
 * @date 2020/4/29 18:30
 */
@RestController
public class MyController {

  /*  @Resource
    RequestGateWay requestGateWay;

*/
    @GetMapping("/ws")
    public String ws() {
//        ObjectFactory objectFactory = new ObjectFactory();
//        GetCountryRequest getCountryRequest = objectFactory.createGetCountryRequest();
//        getCountryRequest.setName("Spain");
//        soapChannel.send(MessageBuilder.withPayload(getCountryRequest).build());
//        ObjectFactory objectFactory = new ObjectFactory();
//        GetCountryRequest getCountryRequest = objectFactory.createGetCountryRequest();
//        getCountryRequest.setName("Spain");
//        Message message = requestGateWay.sendAndReceive(MessageBuilder.withPayload(getCountryRequest).build());
//        return JSON.toJSONString(message);
        return null;
    }

}
